
var $fieldOptions = new Object();
$fieldOptions.status = [
	{
		text:"Taken",
		value:1
	},
	{
		text:"Waiting",
		value:2
	},
	{
		text:"Blocked",
		value:3
	},
	{
		text:"Completed",
		value:4
	},
	{
		text:"Postponed",
		value:5
	}
];

var $schema_main = [
	{
		headerText:"Id",
		propertyName:"id",
		type:"number",
		className:"id"
	},
	{
		headerText:"Title",
		propertyName:"title",
		type:"string",
		className:"title"
	},
	{
		headerText:"Notes",
		propertyName:"notes",
		type:"string",
		textMode:"multiline",
		editable:true,
		className:"notes"
	},
	{
		headerText:"Status",
		propertyName:"status",
		type:"number",
		editable:true,
		options:$fieldOptions.status,
		validation:DataGrid.Validation.REQUIRED,
		className:"status"
	},
	{
		headerText:"Priority",
		propertyName:"priority",
		type:"number",		
		className:"priority"
	},
	{
		headerText:"Weight",
		propertyName:"weight",
		type:"number",
		className:"weight"
	}	
];


var $model_main = [
	{id:"1", title:"Hacer el multiteant", notes:"E-mail", status:2, priority:1, weight:1},
    {id:"1", title:"Hacer el multiteant", notes:"E-mail", status:2, priority:2, weight:10},
    {id:"1", title:"Hacer el multiteant", notes:"E-mail", status:2, priority:3, weight:3}
];

